package cn.gov.pbc.address.common;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class InstitutionTypeConst {
	public static final String POLICY_BANK = "政策性银行";

	public static final String STATE_OWNED = "国有商业银行";

	public static final String JOINT_STOCK = "股份制商业银行";

	public static final String LOCAL_BANK = "地方法人金融机";

	public static final String OTHER_TYPE = "其他类型金融机构";

	private List<String> policyBankList = new ArrayList<>();

	private List<String> stateOwnedList = new ArrayList<>();

	private List<String> jointStockList = new ArrayList<>();

	private List<String> localBankList = new ArrayList<>();

	private List<String> otherTypeList = new ArrayList<>();
	
	private List<String> typeList = new ArrayList<String>();
	
	private Map<String, List<String>> map = new HashMap<>();

	public InstitutionTypeConst() {
		typeList.add(InstitutionTypeConst.POLICY_BANK);
		typeList.add(InstitutionTypeConst.STATE_OWNED);
		typeList.add(InstitutionTypeConst.JOINT_STOCK);
		typeList.add(InstitutionTypeConst.LOCAL_BANK);
		typeList.add(InstitutionTypeConst.OTHER_TYPE);
		
		map.put(InstitutionTypeConst.POLICY_BANK, this.policyBankList);
		map.put(InstitutionTypeConst.STATE_OWNED, this.stateOwnedList);
		map.put(InstitutionTypeConst.JOINT_STOCK, this.jointStockList);
		map.put(InstitutionTypeConst.LOCAL_BANK, this.localBankList);
		map.put(InstitutionTypeConst.OTHER_TYPE, this.otherTypeList);
		
		
		policyBankList.add("中国农业发展银行温州市分行");

		stateOwnedList.add("工行温州分行");
		stateOwnedList.add("农行温州分行");
		stateOwnedList.add("中行温州分行");
		stateOwnedList.add("建行");
		stateOwnedList.add("交行温州分行");
		stateOwnedList.add("邮储银行");

		jointStockList.add("招商银行温州分行");
		jointStockList.add("中信银行温州分行");
		jointStockList.add("光大银行温州分行");
		jointStockList.add("民生银行温州分行");
		jointStockList.add("兴业温州分行");
		jointStockList.add("浦发温州分行");
		jointStockList.add("广发银行");
		jointStockList.add("浙商温州分行");
		jointStockList.add("华夏银行温州分行");
		jointStockList.add("平安温州分行");
		jointStockList.add("恒丰温州分行");
		jointStockList.add("渤海银行温州分行");

		localBankList.add("温州银行");
		localBankList.add("乐清农商银行");
		localBankList.add("文成农村商行");
		localBankList.add("平阳农商银行");
		localBankList.add("泰顺农商银行");
		localBankList.add("洞头农商银行");
		localBankList.add("瑞安农商行");
		localBankList.add("苍南农商银行");
		localBankList.add("永嘉农商银行");
		localBankList.add("龙湾农商行");
		localBankList.add("鹿城农商银行");
		localBankList.add("瓯海农商银行");
		localBankList.add("乐清联合村镇银行");
		localBankList.add("平阳浦发村镇银行");
		localBankList.add("文成北银村镇银行");
		localBankList.add("永嘉村镇银行");
		localBankList.add("洞头富民村镇银行");
		localBankList.add("泰顺温银村镇银行");
		localBankList.add("瑞安湖商村镇银行");
		localBankList.add("苍南中银富登村镇银行");
		localBankList.add("温州民商银行");
		localBankList.add("正泰集团财务有限公司");

		otherTypeList.add("稠州银行温州分行");
		otherTypeList.add("台州银行温州分行");
		otherTypeList.add("宁波银行温州分行");
		otherTypeList.add("海峡银行温州分行");
		otherTypeList.add("杭州银行温州分行");
		otherTypeList.add("民泰银行温州分行");
		otherTypeList.add("金华银行温州分行");
		otherTypeList.add("泰隆银行温州分行");
		otherTypeList.add("绍兴银行温州分行");
	}
	
	public List<String> getByType(String type){
		return this.map.get(type);
	}

	public List<String> getTypeList() {
		return typeList;
	}
	
}
